import { createRouter, createWebHistory } from 'vue-router'

// 路由器配置规则
const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/home',
      name: 'home',
      component: () => import('@/views/home_item.vue')
    },
    {
      path: '/video',
      name:'video',
      component: () => import('@/views/video_item.vue')
    }
    ,
    {
      path: '/bili',
      name: 'blibli',
      component: () => import('@/views/blibli.vue')
    },
    {
      path: '/',
      name: 'test',
      component: () => import('@/views/test.vue')
    },
    {
      path: '/day5',
      name: 'test',
      component: () => import('@/views/day5.vue')
    }
  ] 
})

export default router
